#pragma once
#include <QObject>
#include <QVariant>
#include <QQuickView>

class MainWindowService
{
public:
    virtual ~MainWindowService() {}
    virtual void TestInterface() = 0;
    virtual void postCtkEvent(const QString event, const QVariant data = QVariant(), \
                                                                                     const QVariant extentionData = QVariant()) = 0;
    /// 退出
    virtual void quitApp() = 0;
    /// 带文件启动
    virtual void startAppWithArgs(const QStringList& fileList) = 0;
    /// 获取主窗口的View
    virtual QQuickView* getQuickView() = 0;
};

#define MainWindowService_iid "cn.com.anycubic.MainWindowService"
Q_DECLARE_INTERFACE(MainWindowService, MainWindowService_iid)

